package com.jstnvr.smartcampus.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转控制
 */
@Controller
@RequestMapping("/")
public class PageController {
    @GetMapping()
    public String index() {
        return login();
    }

    @GetMapping("login.html")
    public String login() {
        return "login";
    }

    @GetMapping("regist.html")
    public String regist() {
        return "regist";
    }

    @GetMapping("userFaces.html")
    public String userFaces() {
        return "userFaces";
    }

    @GetMapping("community.html")
    public String community() {

        return "/community";
    }

    @GetMapping("needWechat.html")
    public String needWechat() {

        return "needWechat";
    }

}
